Skip to content

fix(pglt_statement_splitter): properly split for windows #216

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
Mar 10, 2025

Conversation

psteinroe
Copy link
Collaborator

@psteinroe psteinroe commented Feb 21, 2025

wanted to see if it works so added a test :)


turns out the issue was twofold:

  1. the lexer did not count \r\n as a single newline
  2. the splitter did just check for double newlines with .chars().count(), which is obviously not working if all windows newlines are \r\n

also fixed the issues coming from the github actions linter

@psteinroe psteinroe changed the title chore(pglt_statement_splitter): add test for comments fix(pglt_statement_splitter): properly split for windows Mar 7, 2025
@psteinroe psteinroe mentioned this pull request Mar 9, 2025
Copy link
Collaborator

@juleswritescode juleswritescode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pr des Monats, perfect 5/7 experience, would review again

@psteinroe psteinroe merged commit 2ed3129 into main Mar 10, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants